﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WordReplace_list.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.WordReplace_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>字符替换-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="page_navigator">
        <tr>
            <td>
                当前位置：系统管理 -> 关键字替换
            </td>
        </tr>
    </table>
    <table class="table_list">
        <tbody class="hide" style="display: none">
            <tr>
                <td colspan="5" class=" align_l fontBlueForForm">
                    &nbsp;&nbsp; <a href="WordReplace_list.aspx">全部类型</a>&nbsp;&nbsp;
                    <%=m_linkStr%>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr class="tr_title">
                <th colspan="2">
                    名称
                </th>
                <th>
                    待替换文字
                </th>
                <th>
                    添加时间
                </th>
                <th>
                    操作
                </th>
            </tr>
            <cms:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <tr class="tr_listitem" onmouseout="this.className='tr_listitem'" onmouseover="this.className='tr_mouseover'">
                        <td class="align_c" width="2%">
                            <input id="delid" type="checkbox" value="<%#Eval("WordReplaceId")%>" name="delid" />
                        </td>
                        <td class="align_c" align="center">
                            <%# Eval("WordReplaceName")%>
                        </td>
                        <td class="align_c" align="center">
                            <%# Eval("OldValue")%>
                        </td>
                        <td class="align_c">
                            <%#Eval("AddTime","{0:yyyy-MM-dd}")%>
                        </td>
                        <td class="align_c">
                            <a href="WordReplace_save.aspx?id=<%#Eval("WordReplaceId")%>">修改</a> |
                            <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                                CommandArgument='<%#Eval("WordReplaceId") %>' OnClientClick="return confirm('你确定要删除变量吗？');"></cms:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </cms:Repeater>
        </tbody>
        <tr class="tr_btn">
            <td colspan="5">
                <input name="button2" class="button_style" id="chkall" onclick="SelectAll(this.form)"
                    value="全选" type="button">
                <input name="button2" class="button_style" id="Button1" onclick="UnSelectAll(this.form)"
                    value="取消" type="button">
                <cms:Button ID="btnSubmit" CssClass="button_style" runat="server" Text="删除" OnClick="btnSubmit_Click" />
                <input name="AddNew" class="button_style" id="AddNew" onclick="window.location.href='WordReplace_save.aspx?cid=<%=m_cid %>';"
                    value="新增" type="button">
            </td>
        </tr>
    </table>
    <div id="dv_pager">
        <cms:Pager ID="UC_Pager" OnPageChanged="PageChanged" runat="server" />
    </div>
    </form>
</body>
</html>
